class GetMixIN(object):
    @staticmethod
    def get_first(result: list, default=None):
        if result and isinstance(result, (list, tuple)):
            return result[0]
        else:
            return default

    @staticmethod
    def align2first(first: list, *args, filling=''):
        fl = len(first)
        args = list(args)
        for i in range(len(args)):
            c = fl - len(args[i])
            if c > 0:
                args[i] += [filling for _ in range(c)]
            elif c < 0:
                args[i] = args[i][:fl]
        yield from zip(first, *args)
